package com.zsj.qzt_punch.http;


import com.zsj.qzt_punch.pojo.MonthReportRequestBody;
import com.zsj.qzt_punch.pojo.PunchClockRequestBody;
import com.zsj.qzt_punch.pojo.WeekReportRequestBody;
import okhttp3.ResponseBody;
import retrofit2.Call;
import retrofit2.http.*;


public interface QztHttpRequest {

    String baseUrl = "http://gwsxapp.gzzjzhy.com";

    //根据token获取到用户信息  该token需要手动更新一次
    @GET("/api/user/getLoginUser")
    Call<ResponseBody> getToken(@Header("token")String token);


    //打卡
    @POST("api/workClock/punchClock")
    Call<ResponseBody> punch(@Header("token") String token, @Body PunchClockRequestBody requestBody);


    //发送周报
    @POST("/api/report/submitDataByWeekly")
    Call<ResponseBody> submitDataByWeekly(@Header("token") String token, @Body WeekReportRequestBody requestBody);


    //发送月报
    @POST("/api/report/submitDataByMonthly")
    Call<ResponseBody> submitDataByMonthly(@Header("token") String token, @Body MonthReportRequestBody requestBody);


}
